Helper::ShellProcess Create Method

Syntax

.Create as Helper::ShellProcess (command as C [, flags as C])

Arguments

command

Command and optional parameters.

flags

Flags, -e combines output and error results.

Description

Return a process to interact with, flag objects '-e' don't differentiate errors from other output.

Example

dim curlCmd as c = a5.Get_Exe_Path() + "\curl.exe https://www.google.com -o c:\data\google.html"
dim sp as Helper::ShellProcess = Helper::ShellProcess::Create(curlCmd)
sp.waitUntilTerminate()
? file.exists("c:\data\google.html")
= .T.

a5_show_html(file.to_string("c:\data\google.html"))